home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-1999 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 26 Jun 1996
- //
- // Description:
- // This procedure sets the state of the object pick mask.
- //
- // Input Arguments:
- // The flag for the pick mask setting to turn on/off,
- // and the state to set that pick mask setting to.
- //
- // Return Value:
- // None
- //
-
- global proc setObjectPickMask( string $maskType, int $state ) {
-
- //
- // Set values, based on the state of the pick mask
- // type and state passed to the procedure
- //
- switch ($maskType) {
- case "All":
- selectType -allObjects $state;
- //
- // Change the state of all the object
- // selection mask buttons in the infoBar
- //
- iconTextCheckBox -e -v $state objButton1;
- iconTextCheckBox -e -v $state objButton2;
- iconTextCheckBox -e -v $state objButton3;
- iconTextCheckBox -e -v $state objButton4;
- iconTextCheckBox -e -v $state objButton5;
- iconTextCheckBox -e -v $state objButton6;
- iconTextCheckBox -e -v $state objButton7;
- break;
- case "Marker":
- selectType
- -handle $state
- -ikHandle $state;
- break;
- case "Joint":
- selectType
- -joint $state;
- break;
- case "Curve":
- if (`isTrue MayaCreatorExists` && (`licenseCheck -m "edit" -typ "particlePaint"`) ) {
- selectType
- -nurbsCurve $state
- -cos $state
- -stroke $state; // For Particle Paint
- }
- else {
- selectType
- -nurbsCurve $state
- -cos $state;
- }
- break;
- case "Surface":
- selectType
- -nurbsSurface $state
- -polymesh $state
- -subdiv $state
- -plane $state;
- break;
- case "Deformer":
- selectType
- -lattice $state
- -cluster $state
- -sculpt $state
- -nonlinear $state;
- break;
- case "Dynamic":
- selectType
- -particleShape $state
- -emitter $state
- -field $state
- -fluid $state
- -spring $state
- -collisionModel $state
- -rigidBody $state
- -rigidConstraint $state;
- break;
- case "Rendering":
- selectType
- -light $state
- -camera $state
- -texture $state;
- break;
- case "Other":
- selectType
- -ikEndEffector $state
- -locator $state
- -dimension $state;
- break;
- }
- }
-